package com.simple.system.domain.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;
import java.util.Set;


/**
 * @Description 新增菜单-dto
 * @Author xiaoke
 * @Date 2024/8/10 18:00
 * @Version 1.0
 */
@Data
public class AddSysMenuDto {
    //父id
    private Long pid;
    //显示顺序
    private Integer rank;
    //角色权限标识符(,分割)
    private Set<Long> roles;
    //路由名称
    private String name;
    @NotBlank(message = "菜单名不能为空")
    //菜单标题
    private String title;
    //外部跳转链接
    private String frameSrc;
    //权限标识符
    private String perms;
    //路由地址
    private String path;
    //是否菜单
    private Integer isMenu;
    //是否显示菜单
    private Integer showLink;
    //图标
    private String icon;
    //激活菜单的path
    private String activePath;
    //创建时间
    private LocalDateTime createTime;
    //是否缓存该页面
    private Integer keepalive;
}
